﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OnlineManagement.IDAL;
using OnlineManagement.DALFactory;
namespace OnlineManagement.BLL
{
    /// <summary>
    /// 乳猪断奶登记  业务层
    /// </summary>
   public class WeanedRecord
    {
       private readonly IWeanedRecord iRecord = DataAccess.CreateWeanedRecord();
       public WeanedRecord() { }

       /// <summary>
       /// 添加 乳猪断奶登记
       /// </summary>
       /// <param name="record"></param>
       /// <param name="returnValue"></param>
       /// <param name="isChangeSowPigPen">是否改变母猪猪舍，0-不改变，1-改变</param>
       /// <param name="changedToPigPenId">改变后的猪舍号</param>
       /// <returns></returns>
       public bool AddWeanedRecord(Model.WeanedRecord record, bool isChangeSowPigPen, Guid changedToPigPenId, out string returnValue)
       {
         return iRecord.AddWeanedRecord(record,isChangeSowPigPen,changedToPigPenId, out returnValue);
       }
    }
}
